import request from '@/utils/request'

// 查询合同与收费项关联中间桥列表
export function listRentalcontract_middle(query) {
  return request({
    url: '/rentalcontractMiddle/rentalcontract_middle/list',
    method: 'get',
    params: query
  })
}

// 查询合同与收费项关联中间桥详细
export function getRentalcontract_middle(id) {
  return request({
    url: '/rentalcontractMiddle/rentalcontract_middle/' + id,
    method: 'get'
  })
}

// 新增合同与收费项关联中间桥
export function addRentalcontract_middle(data) {
  return request({
    url: '/rentalcontractMiddle/rentalcontract_middle?cid='+data.cid+'&rid='+data.rid,
    method: 'get',

    // params:data
    // data: data
  })
}

// 修改合同与收费项关联中间桥
export function updateRentalcontract_middle(data) {
  return request({
    url: '/rentalcontractMiddle/rentalcontract_middle',
    method: 'put',
    data: data
  })
}

// 删除合同与收费项关联中间桥
export function delRentalcontract_middle(id) {
  return request({
    url: '/rentalcontractMiddle/rentalcontract_middle/' + id,
    method: 'delete'
  })
}
